package com.zds.support.api.retrofit.exception;

public class ApiException extends Exception {
    public static final String CODE_ERROR_AES_DECRYPT = "auth.decryption_fail";
    public static final String CODE_ERROR_AES_ENCRYPT = "auth.encryption_fai";
    private String code = "";
    private String msg = "";

    public ApiException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public ApiException(int code, String msg) {
        this(code + "", msg);

    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
